import request from '@/utils/request'
import {logService as logRequest} from '@/utils/request'

export function getData(params) {
  return request({
    url: 'api/messagecenter/page',
    method: 'get',
    params
  })
}

export function download(params) {
  return logRequest({
    url: '/api/messagecenter/downLoadLog',
    method: 'get',
    params
  })
}

export function changeTime(params) {
  return request({
    url: '/api/messagecenter',
    method: 'put',
    data: params
  })
}

export default { getData, download, changeTime }
